/**
 * Created by Edwin on 2015/12/16 0016.
 * 创建数据库连接
 */

var mongoose = require('mongoose');

var ProductionMateria = mongoose.Schema({	
	  id:String,
	  name:String,
	  type:Number,
	  sl:Number,
	  dj:Number,
	  zj:Number,
	  unit:String
});

var schema = mongoose.Schema({
	  name:String,
	  remark:String,
	  type:Number,
	  price:Number,
	  productionMaterias:[ProductionMateria],
	  sx:String,
	  time:Date
})

var Cuisine=mongoose.model('cuisines', schema)

module.exports = Cuisine;


